/**
 * Project Name:Micro-Services-Common
 * File Name   :Constants.java
 * Package Name:com.micro.services.common
 * Date:2015-9-6下午2:29:26
 * Copyright (c) 2015, http://my.oschina.net/httpssl All Rights Reserved.
 *
 */
/**
 *  {{Code Template Comments Files}}
 */

package com.micro.services.common;

import java.nio.charset.Charset;

import com.google.common.base.Charsets;

/**
 * ClassName:Constants <br/>
 * Function :Micro-Services-Common-PUBLIC-Constants. <br/>
 * Reason :Common-PUBLIC-Constants. <br/>
 * Date :2015-9-6 下午2:29:26 <br/>
 * 
 * @author :http://my.oschina.net/httpssl
 * @email :491835898@QQ.COM
 * @since :JDK 1.7
 * @see
 */
public class Constants 
{
	/**
	 * 调度CPU核心数
	 */
	public static final int		DEFAULT_IO_THREADS			= Runtime.getRuntime()
																	.availableProcessors() + 1;

	public static final Charset	DEFAULT_CHARSET				= Charsets.UTF_8;

	public static final String	DEFAULT_LOADBALANCE			= "random";

	/*
	 * 世界里的对象
	 */
	public static final String	CONFIGURATORS				= "configurators";

	public static final String	PLAYGROUD					= "playgroud";

	public static final String	PROVIDERS					= "providers";

	public static final String	PROVIDER					= "provider";

	public static final String	REGISTER					= "register";

	public static final String	CONSUMERS					= "consumers";

	public static final String	CONSUMER					= "consumer";

	public static final String	ROUTERS						= "routers";

	
	
	public static final String IMPLEMENTS_TAG = "Impl";
	/*
	 * 节点上面的属性
	 */
	public static final String	PLAYGROUD_PROPERTY_AUTHOR	= "@author";

	public static final String	ROUTER_KEY					= "router";

	public static final String	CLUSTER_KEY					= "cluster";

	public static final String	REGISTRY_KEY				= "registry";

	public static final String	LOCALHOST_KEY				= "localhost";

	public static final String	LOCALHOST_VALUE				= "127.0.0.1";

	public static final String	APPLICATION_KEY				= "application";
	
	/**
	 * 分隔符
	 */
	public static final String  FILE_PATH_SEPARATOR 				= ",";
	
	public static final String  REGISTRY_SEPARATOR                 = "|";
	
	public static final char  DIAN                    = '.';
	
	public static final char  HIDE_KEY_PREFIX                    = '.';

}
